@import './_mixin';
@import './_reset.scss';
@import './ver';

// 导航栏
nav{
    height: 40px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #f5f5f5;

    > div{
        @include Type;
        height: 100%;
        box-sizing: border-box;
        background-color: white;
        display: flex;
        padding-left: 10px;

        >a{
            height: 40px;
            margin-top: 5px;

            &:hover{
                color: $font_hover;
            }
        }

        >div{
            margin-top: 5px;
            margin-left: 60px;
            cursor: pointer;
            text-align: center;
            font-size: 18px;
                height: 30px;
                color: red;

            >div{
                border: 1px solid #f5f5f5;
                border-top: none;
            }
        }

    }
}
//导航栏结束

// 头部
header{
    @include Type;
    height: 100px;
    display: flex;
    border-bottom: 2px solid $font_hover;


    >img{
        width: 190px;
        height: 90px;
    }

    >p{
        margin-left: 70px;
        margin-top:33px;
        font-size: 20px;
        color: orange;
    }
}
// 头部结束

body{
    background-color: #f5f5f5;
}

//商品详情
section{
    min-height: 300px;
    margin-top: 10px;
    border: 1px solid transparent;

    >.main_info{
        @include Type;
        min-height: 300px;
        margin-top: 60px;
        


        >.container{
            width: 800px;
            height: 400px;
            margin: 0 auto;
            display: flex;
            border: 1px solid orange;
            border-radius: 10px;
            box-sizing: border-box;
            padding: 20px;

            >.left{
                width: 350px;
                height: 350px;
                box-sizing: border-box;

                margin-right: 30px;
                position: relative;

                >.left_top{
                width: 350px;
                height: 280px;
                
                >img{
                    width: 350px;
                    height: 280px;
                    position: absolute;
                    pointer-events: none;
                }
                >.mask{
                    width: 100px;
                    height: 100px;
                    position: absolute;
                    background-color: rgba(235, 235, 11, 0.5);
                    display: none;
                }
                }

                >.left_bot{
                    width: 350px;
                    height: 80px;
                    margin-top: 8px;
                    position: absolute;
                    display: flex;

                    >.small_pic_1{
                        margin: 6px;
                        padding: 3px;
                        box-sizing: border-box;
                        border: 1px solid black;
                        width: 70px;
                        height: 70px;

                        >img{
                           width: 60px;
                           height: 60px;
                        }

                        &.active{
                            border: 1px solid orange;
                        }
                    }
                }

                >.enlage{
                    width: 350px;
                    height: 350px;
                    position: absolute;
                    left: 105%;
                    top: 0;
                    background-color: purple;
                    overflow: hidden;
                    display: none;


                    &.active{
                        display: block;
                    }

                }
            }

            >.right{
               flex: 1; 


               >.title{
                   margin-top: 10px;
                   width: 380px;
                   min-height: 100px;
                   font-size: 16px;

               }


               >.price{
                margin-top: 10px;
                  width: 380px;
                  height: 50px;
                  margin-bottom: 20px;
                  
                  >.current{
                    height: 50px;
                    line-height: 50px;
                    font-size: 26px;
                    color: red
                  }

                  >.old {
                    margin-left: 50px;
                    text-decoration: line-through;

                  }



               }
                  >.number{
                    display: flex;

                    > button{
                        width: 60px;
                        height: 30px;
                        font-size: 20px;
                    }

                    >input{
                        text-align: center;
                    }
                  }


                  >.btns{
                    >button{
                       &:nth-child(1){
                       width: 150px;
                       height: 60px;
                       margin-top: 30px;
                       background-color: orange;
                       font-size: 16px;
                       color: white;
                       border-radius: 10px;
                       }


                       &:nth-child(2){
                        width: 150px;
                        height: 60px;
                        margin-top: 30px;
                        background-color: skyblue;
                        margin-left: 20px;
                        color: white;
                        font-size: 16px;
                        border-radius: 10px;
                    }
                }
                  }
            }  
        }       
    }
}
.params_box{
    @include Type;
    min-height:300px;
.params{
    width: 800px;
    margin: 0 auto;
}

}










// 尾部
footer{
    @include Type;
    height: 300px;
    background-color: skyblue;
    text-align: center;
    line-height: 300px;
    color: white;
    font-size: 60px;
    margin-top: 20px;
}


